import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from "path";
import ElementPlus from "unplugin-element-plus/vite";

// https://vitejs.dev/config/
export default defineConfig({
    base: "./",
    plugins: [vue(), ElementPlus()],
    // 解析配置 https://vitejs.cn/vite3-cn/config/shared-options.html#resolve-alias
    resolve: {
      alias: {
        "@": path.resolve(__dirname, "./src"), //import时直接将 @ 当作src目录进行解析
      },
    },
    server: {
      port: 6661,
      strictPort: true,
      host: "0.0.0.0",
    },
})
